<template>
    <div>
        <message ref="msg">
            <div>
                全局提醒
            </div>
        </message>

        <div @click="showMessage">
            点击提示
        </div>
    </div>
</template>

<script>
import Message from 'base/message/message'
export default {
    methods:{
        showMessage() {
            this.$refs.msg.show()
        }
    },
    components:{
        Message
    }
}
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';

</style>
